//
//  ViewController.m
//  Book
//
//  Created by zhiyou on 16-3-22.
//  Copyright (c) 2016年 陈凯. All rights reserved.
//

#import "ViewController.h"
#import "UPLoadVC.h"

#import "CellOne.h"
#import <UIImageView+WebCache.h>
#import <SDImageCache.h>
#import "LoginVC.h"
@interface ViewController ()
//@property(nonatomic,retain)NSMutableArray*dataArray;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    // NSMutableArray*dataArry=[MyTable selectAllBook];
    
            LoginVC*vc=[[LoginVC alloc]init];
        UINavigationController*nav=[[UINavigationController alloc]initWithRootViewController:vc];
        UIWindow*window=[UIApplication sharedApplication].delegate.window;
        window.rootViewController=nav;

    
}
//-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
//    NSLog(@"%d",parser.dataArray.count);
//    return parser.dataArray.count;
//}
//-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
//    CellOne*cell=[tableView dequeueReusableCellWithIdentifier:@"CellOne"];
//    NSArray*array=[[NSBundle mainBundle]loadNibNamed:@"CellOne" owner:self options:nil];
//    if(!cell){
//        
//        cell=array[0];
//    }
//    Book*book=parser.dataArray[indexPath.row];
//    //    NSData*data=[NSData dataWithContentsOfURL:[NSURL URLWithString:book.ImageName]];
//    //    UIImage*image=[UIImage imageWithData:data];
//    //    cell.imgV.image =image;
//    
//    [cell.imgV sd_setImageWithURL:[NSURL URLWithString:book.ImageName] placeholderImage:[UIImage imageNamed:@"place"]];
//    cell.booknamelabel.text=book.bookname;
//    cell.author.text=book.author;
//    cell.detail.text=book.detail;
//    cell.selectionStyle=UITableViewCellSelectionStyleNone;
//    return cell;
//}
//-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
//    return 86;
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
